package com.violet.springaop.setinjection;

import org.springframework.stereotype.Component;

/**
 * @author LiChaochao
 * @Date 2021/10/21 14:06
 * @Description
 */
@Component
public class A {

    private B b;

    public void setB(B b) {
        this.b = b;
        System.out.println("A里面设置了B");
    }
}
